package com.bjsxt;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class FileUtilsDemo1 {
    public static void main(String[] args)throws Exception {
       String content =  FileUtils.readFileToString(new File("d:/sxt.txt"),"utf-8");
        System.out.println(content);
    }
}
